Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Use VMAX for resetting omega before and after rotation scans #1237

Merged
merged 6 commits into from
Mar 14, 2024

Conversation

d-perl
Copy link
Contributor

@d-perl d-perl commented Mar 8, 2024

Fixes #685
Uses the max_velocity from the ExtendedEpicsMotor to reset velocity for rotation scans

Link to dodal PR (if required): 367

To test:

  1. Run tests

@d-perl d-perl changed the title 685 use vmax for rotation Use VMAX for resetting omega before and after rotation scans Mar 8, 2024
Copy link
Collaborator

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, one minor query

Comment on lines +271 to +272
yield from bps.rd(composite.smargon.omega.max_velocity)
or DEFAULT_MAX_VELOCITY
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should: Why do we have a default in here? In case the PV doesn't exist - we have bigger problems. For the unit tests - we should just be setting up the mock device properly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figured in case it was 0 for some reason, I don't know how likely it is for the smargon or VMAX specifically but we often have epics motor fields with nothing in them

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's very unlikely but I'm not that bothered

@d-perl d-perl requested a review from DominicOram March 14, 2024 10:53
Copy link
Collaborator

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, ta!

Comment on lines +271 to +272
yield from bps.rd(composite.smargon.omega.max_velocity)
or DEFAULT_MAX_VELOCITY
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's very unlikely but I'm not that bothered

@d-perl d-perl merged commit 3ca935c into main Mar 14, 2024
4 checks passed
@d-perl d-perl deleted the 685_use_vmax_for_rotation branch March 14, 2024 15:41
olliesilvester pushed a commit to olliesilvester/mx-bluesky that referenced this pull request Aug 23, 2024
…Source/685_use_vmax_for_rotation

Use VMAX for resetting omega before and after rotation scans
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get max velo for moving to start of rotation
2 participants